/*
 * @Date: 2023-08-08 14:25:53
 * @LastEditors: lyx
 * @LastEditTime: 2023-08-08 15:13:40
 * @FilePath: \sup-mini-app\src\components\Banner\hooks\useBanner.tsx
 * @Description:
 */
import React, { useEffect } from "react";

function useBanner(props: any) {
  const { dispatch } = props;
  const queryDataList = () => {
    dispatch({
      type: "banner/queryBannerList",
      payload: {
        type: "HOME",
      },
    });
  };

  useEffect(() => {
    queryDataList();
  }, []);

  return {};
}

export default useBanner;
